home *** CD-ROM | disk | FTP | other *** search
/ Shareware Games Galore! / Shareware Games Galore!.iso / arcade / corewars / uzi2.rdc < prev    next >
Text File  |  1989-04-28  |  511b  |  25 lines

  1. ; UZI warrior 2
  2. ; by Maz Spork
  3.  
  4. width    equ    333        ; distance between copies
  5.  
  6. ; Replication module: copies the Killer program elsewhere in memory, then
  7. ; splits to that code.
  8.  
  9. start    sub    #width    dest
  10.     mov    uzi+2    <dest
  11.     mov    uzi+1    <dest
  12.     mov    uzi    <dest
  13.     spl    @dest
  14.     jmp    start
  15.  
  16. dest    dat    0
  17.  
  18. ; Killer module: fires bursts of killer opcodes into the core.
  19.  
  20. uzi    mov    3    -1    ; moves illegal opcode into core
  21.     add    offset    uzi    ; add offset to destination above
  22. offset    djn    uzi    #-1    ; decreases the offset
  23.  
  24.     end
  25.